fx := 0;
for i in 1:3 loop
fx := fx + a[i]*x^(3-i);
/* At the end of loop, fx is equivalent to f(x) = a[1]*x^2 + a[2]*x  + a[3] */
end for;
